// Comment.java
package com.health.information.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.core.domain.BaseEntity;

/**
 * 评论对象 comment
 */
public class Comment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentId;

    /** 动态id */
    private Long postId;

    /** 所属用户id */
    private Long userId;

    /** 评论内容 */
    private String comment;

    /** 评论点赞总数 */
    private Integer commentLikedNum;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    // getter and setter methods
    public Long getCommentId() { return commentId; }
    public void setCommentId(Long commentId) { this.commentId = commentId; }

    public Long getPostId() { return postId; }
    public void setPostId(Long postId) { this.postId = postId; }

    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public String getComment() { return comment; }
    public void setComment(String comment) { this.comment = comment; }

    public Integer getCommentLikedNum() { return commentLikedNum; }
    public void setCommentLikedNum(Integer commentLikedNum) { this.commentLikedNum = commentLikedNum; }

    public String getDelFlag() { return delFlag; }
    public void setDelFlag(String delFlag) { this.delFlag = delFlag; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("comment", getComment())
            .append("commentLikedNum", getCommentLikedNum())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .toString();
    }
}